#include "led.h"

#include <ESP8266WiFi.h>

void ledInit()
{
    // 配置LED灯引脚为输出
    pinMode(LED_BUILTIN, OUTPUT);

    // 初始化为常灭
    ledAlwaysOff();
}

void ledFastFlash()
{
    digitalWrite(LED_BUILTIN, LOW);
    delay(500);
    digitalWrite(LED_BUILTIN, HIGH);
    delay(500);
}

void ledAlwaysOn()
{
    digitalWrite(LED_BUILTIN, LOW);
}

void ledAlwaysOff()
{
    digitalWrite(LED_BUILTIN, HIGH);
}
